package com.qujia.station.domain.dto;
 
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
/**
 * @author tqf
 * @Description
 * @Version 1.0
 * @since 2022-03-14 11:09
 */
@Data
@ApiModel(description = "cron表达体")
@Accessors(chain = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class TaskScheduleModel {
 
    /**
     * 所选作业类型:
     * 1  -> 每天
     * 2  -> 每月
     * 3  -> 每周
     */
    @ApiModelProperty(value = "所选作业类型(1-每天,2-每月,3-每周)")
    Integer jobType;
 
    /**一周的哪几天*/
    @ApiModelProperty(value = "一周的哪几天")
    Integer[] dayOfWeeks;

    /**一个月的哪几天*/
    @ApiModelProperty(value = "一个月的哪几天")
    Integer[] dayOfMonths;
 
    /**秒  */
    @ApiModelProperty(value = "秒")
    Integer second;
 
    /**分  */
    @ApiModelProperty(value = "分")
    Integer minute;
 
    /**时  */
    @ApiModelProperty(value = "时")
    Integer hour;
 
}